import request from '@/utils/request'
export function getTableTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/getTableTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
export function getAllColumnSet(page, size) {
  return request({
    url: '/api/admin/getAllColumnSet',
    method: 'post',
    params: { page: page, size: size }
  })
}
export function getEntityTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/getEntityTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
export function saveTableTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/saveTableTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
export function getDAOTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/getDAOTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
export function getTableApiTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/getTableApiTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
export function getApiControllerTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/getApiControllerTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
export function getApiServiceTemplate(qBootColumnSet) {
  return request({
    url: '/api/admin/getApiServiceTemplate',
    method: 'post',
    data: qBootColumnSet,
    header: {
      'Content-Type': 'application/json'
    }
  })
}
